import React from 'react';
import { connect } from 'umi';
import { Tabs } from 'antd';
import styles from './index.less';
import FanSpeed from './fanSpeed';
import PlaceType from './placeType';
class WeatherForecast extends React.Component {
  constructor(props) {
    super(props);
  }

  async componentDidMount() {}

  componentWillUnmount() {}

  render() {
    return (
      <div className={styles.container}>
        <Tabs defaultActiveKey="1" type="card" destroyInactiveTabPane={true}>
          <Tabs.TabPane tab="场站对应机型" key="1">
            <PlaceType />
          </Tabs.TabPane>
          <Tabs.TabPane tab="机型风速" key="2">
            <FanSpeed />
          </Tabs.TabPane>
        </Tabs>
      </div>
    );
  }
}

export default connect(({ weatherForecast, global }) => ({
  global,
  menuCode: global.configure.menuCode,
  buttonPermissions: global.configure.buttonPermissions,
  weatherForecast,
}))(WeatherForecast);
